<!doctype html>



  


<html class="theme-next mist use-motion" lang="zh-Hans">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>



<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />












  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />




  
  
  
  

  
    
    
  

  

  

  

  

  
    
    
    <link href="//fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext" rel="stylesheet" type="text/css">
  






<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.1.0" rel="stylesheet" type="text/css" />


  <meta name="keywords" content="hexo,博客,hexo3,blog,github pages,免费个人博客" />








  <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico?v=5.1.0" />






<meta name="description" content="设置分类列表在_config.yml中设置categories:会让文章属于哪个分来，如果分类用了中文的话，路径也会出现中文，这不是我们想看到的效果，这时在配置文件中的Category &amp;amp; Tag可以更改分类的路径，类似于：1234567# Category &amp;amp; Tagdefault_category: uncategorizedcategory_map:	编程: programm">
<meta name="keywords" content="hexo,博客,hexo3,blog,github pages,免费个人博客">
<meta property="og:type" content="article">
<meta property="og:title" content="hexo装饰(二)">
<meta property="og:url" content="http://lanbos.win/2015/02/11/hexo/hexo_decorateBlog2/index.html">
<meta property="og:site_name" content="lanbos&#39;blog">
<meta property="og:description" content="设置分类列表在_config.yml中设置categories:会让文章属于哪个分来，如果分类用了中文的话，路径也会出现中文，这不是我们想看到的效果，这时在配置文件中的Category &amp;amp; Tag可以更改分类的路径，类似于：1234567# Category &amp;amp; Tagdefault_category: uncategorizedcategory_map:	编程: programm">
<meta property="og:locale" content="zh-Hans">
<meta property="og:updated_time" content="2016-12-30T09:59:38.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="hexo装饰(二)">
<meta name="twitter:description" content="设置分类列表在_config.yml中设置categories:会让文章属于哪个分来，如果分类用了中文的话，路径也会出现中文，这不是我们想看到的效果，这时在配置文件中的Category &amp;amp; Tag可以更改分类的路径，类似于：1234567# Category &amp;amp; Tagdefault_category: uncategorizedcategory_map:	编程: programm">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Mist',
    sidebar: {"position":"left","display":"post"},
    fancybox: true,
    motion: true,
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="http://lanbos.win/2015/02/11/hexo/hexo_decorateBlog2/"/>





  <title> hexo装饰(二) | lanbos'blog </title>
</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  










  
  
    
  

  <div class="container one-collumn sidebar-position-left page-post-detail ">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-meta ">
  

  <div class="custom-logo-site-title">
    <a href="/"  class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <span class="site-title">lanbos'blog</span>
      <span class="logo-line-after"><i></i></span>
    </a>
  </div>
  <p class="site-subtitle">这个人假装很懒，什么都没有留下</p>
</div>

<div class="site-nav-toggle">
  <button>
    <span class="btn-bar"></span>
    <span class="btn-bar"></span>
    <span class="btn-bar"></span>
  </button>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/about" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br />
            
            关于
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />
            
            标签
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">
  <link itemprop="mainEntityOfPage" href="http://lanbos.win/2015/02/11/hexo/hexo_decorateBlog2/">

  <span style="display:none" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <meta itemprop="name" content="lanbos">
    <meta itemprop="description" content="">
    <meta itemprop="image" content="https://ws1.sinaimg.cn/large/5c9d16d6gw1fbesf3zrhej209p09ftai.jpg">
  </span>

  <span style="display:none" itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
    <meta itemprop="name" content="lanbos'blog">
    <span style="display:none" itemprop="logo" itemscope itemtype="http://schema.org/ImageObject">
      <img style="display:none;" itemprop="url image" alt="lanbos'blog" src="">
    </span>
  </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                hexo装饰(二)
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>
              <time title="Post created" itemprop="dateCreated datePublished" datetime="2015-02-11T08:55:29+08:00">
                2015-02-11
              </time>
            

            

            
          </span>

          
            <span class="post-category" >
              <span class="post-meta-divider">|</span>
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/coder/" itemprop="url" rel="index">
                    <span itemprop="name">码畜相关</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
          

          

          
          

          

          

        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        <h2 id="设置分类列表"><a href="#设置分类列表" class="headerlink" title="设置分类列表"></a>设置分类列表</h2><p>在_config.yml中设置<em>categories:</em>会让文章属于哪个分来，如果分类用了中文的话，路径也会出现中文，这不是我们想看到的效果，这时在配置文件中的<em>Category &amp; Tag</em>可以更改分类的路径，类似于：<br><figure class="highlight yaml"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div></pre></td><td class="code"><pre><div class="line"><span class="comment"># Category &amp; Tag</span></div><div class="line"><span class="attr">default_category:</span> <span class="string">uncategorized</span></div><div class="line"><span class="attr">category_map:</span></div><div class="line">	<span class="string">编程:</span> <span class="string">programming</span></div><div class="line">	<span class="string">生活:</span> <span class="string">life</span></div><div class="line">	<span class="string">其他:</span> <span class="string">other</span></div><div class="line"><span class="attr">tag_map:</span></div></pre></td></tr></table></figure></p>
<a id="more"></a>
<h2 id="light主题格式优化"><a href="#light主题格式优化" class="headerlink" title="light主题格式优化"></a>light主题格式优化</h2><p>light主题的引用模块和强调模块不太符合我的审美，找到了/themes/light/source/css/_partial/article.styl，后面加入<br><figure class="highlight styl"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div></pre></td><td class="code"><pre><div class="line"><span class="selector-class">.entry</span></div><div class="line">  <span class="selector-tag">em</span></div><div class="line">    <span class="attribute">background</span> <span class="number">#ddd</span></div><div class="line">    <span class="attribute">font-style</span> normal</div><div class="line">    <span class="attribute">padding</span> <span class="number">0</span> <span class="number">4px</span></div><div class="line"><span class="selector-tag">article</span> <span class="selector-class">.entry</span> <span class="selector-tag">blockquote</span></div><div class="line">  <span class="attribute">border-left</span>  <span class="number">5px</span> solid <span class="number">#ddd</span>;</div><div class="line">  <span class="attribute">background</span>  <span class="number">#eee</span>;</div><div class="line">  <span class="attribute">font-size</span>: <span class="number">14px</span>;</div><div class="line">  <span class="attribute">padding</span>: <span class="number">5px</span> <span class="number">30px</span> <span class="number">15px</span>;</div><div class="line">  <span class="attribute">text-align</span>: left;</div></pre></td></tr></table></figure></p>
<p>其实就是对css格式的更改，这里要吐槽一下styl这种格式，一看就是python和ruby开发者搞出的东西，类似于jade这种反人类的语法，牺牲开发效率体现优雅。。。</p>
<h2 id="light主题增加文章导航"><a href="#light主题增加文章导航" class="headerlink" title="light主题增加文章导航"></a>light主题增加文章导航</h2><p>网上找了写增加导航的方法，但是不适用与light主题，自己看了下官方api，文章导航主要借助了hexo提供的辅助函数toc：<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div></pre></td><td class="code"><pre><div class="line">&lt;%- toc(str, [options]) %&gt;</div><div class="line">&lt;!-- 事例--&gt;</div><div class="line">&lt;%- toc(page.content) %&gt;</div></pre></td></tr></table></figure></p>
<p>其实就是在toc函数中传入内容就行了。导航的位置根据不同的主题略有不同，网上很多主题是直接放在了/layout/_partial/article.ejs中，但是对于类似于light这样左右布局的主题，导航放在文章区域不太好调控样式，这样的主题导航适合放在右侧的sidebar中。但是直接放在sidebar中有一个问题，因为sidebar不仅仅在详情页面出现，而且会在主页和列表也出现，直接用上述方法的话在静态化编译的时候hexo直接会报错，而且导致主页和列表页无法打开，为了解决这个问题，引入了辅助函数：<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">&lt;%- is_post() %&gt;</div></pre></td></tr></table></figure></p>
<p>通过这个函数可以判断页面是否是详情页。<br>所以给light主题在右侧侧边栏添文章导航的方法是：<br>1.在/themes/light/layout/_widget中新建文件toc.ejs<br>2.在toc.ejs中填入以下代码：<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div></pre></td><td class="code"><pre><div class="line">&lt;%if(is_post())&#123; %&gt;</div><div class="line">&lt;div id=&quot;toc&quot; class=&quot;toc-article&quot;&gt;</div><div class="line">		        &lt;strong class=&quot;toc-title&quot;&gt;文章目录&lt;/strong&gt;</div><div class="line">		        &lt;%- toc(page.content) %&gt;</div><div class="line">&lt;/div&gt;</div><div class="line">&lt;%&#125;%&gt;</div></pre></td></tr></table></figure></p>
<p>3.在/themes/light/_config.yml中更改相关内容：<br><figure class="highlight yml"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div></pre></td><td class="code"><pre><div class="line"><span class="attr">widgets:</span></div><div class="line"><span class="bullet">-</span> <span class="string">toc</span> <span class="comment">#新增文章导航</span></div><div class="line"><span class="bullet">-</span> <span class="string">search</span></div><div class="line"><span class="bullet">-</span> <span class="string">category</span></div><div class="line"><span class="bullet">-</span> <span class="string">tagcloud</span></div></pre></td></tr></table></figure></p>
<p>4.在/themes/light/source/css/_partial/archive.styl中修改文章导航的样式比如增加：<br><figure class="highlight styl"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div></pre></td><td class="code"><pre><div class="line"><span class="selector-id">#toc</span></div><div class="line">  <span class="attribute">background</span> <span class="number">#fff</span></div><div class="line">  <span class="attribute">box-shadow</span> <span class="number">1px</span> <span class="number">2px</span> <span class="number">3px</span> <span class="number">#ddd</span></div><div class="line">  <span class="attribute">padding</span> <span class="number">15px</span> <span class="number">20px</span></div><div class="line">  <span class="attribute">line-height</span> <span class="number">1.6</span></div><div class="line">  <span class="attribute">font-size</span> <span class="number">14px</span></div><div class="line">  <span class="attribute">margin-bottom</span> <span class="number">30px</span></div><div class="line">  <span class="selector-tag">strong</span></div><div class="line">    <span class="attribute">font-size</span> <span class="number">15px</span></div><div class="line">  <span class="selector-tag">ol</span></div><div class="line">    <span class="attribute">margin-top</span> <span class="number">5px</span></div><div class="line">    <span class="attribute">margin-left</span> <span class="number">0</span></div><div class="line">  <span class="selector-class">.toc</span></div><div class="line">    <span class="attribute">padding</span> <span class="number">0</span></div><div class="line">    <span class="selector-tag">li</span></div><div class="line">      <span class="attribute">list-style-type</span> none</div><div class="line">  <span class="selector-class">.toc-child</span></div><div class="line">    <span class="attribute">padding-left</span> <span class="number">20px</span></div></pre></td></tr></table></figure></p>
<p>5.在/themes/light/layout/layout.ejs中找到<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">&lt;aside id=&quot;sidebar&quot; class=&quot;alignright&quot;&gt;&lt;%- partial(&apos;_partial/sidebar&apos;, &#123;&#125;, &#123;cache: true&#125;) %&gt;&lt;/aside&gt;</div></pre></td></tr></table></figure></p>
<p>将<em>cache:true</em>改为<em>cache:false</em>因为这里调用了缓存机制，不关闭缓存机制的话在文章页面会继承首页的sidebar，文章列表不会出现。</p>
<h3 id="文章导航优化"><a href="#文章导航优化" class="headerlink" title="文章导航优化"></a>文章导航优化</h3><p>这样一个light主题的文章导航的最基本样式就添加完成了，但是发现现在的文章导航是固定在sidebar第一块位置上的，当文章很长时每次还得拖回到顶部去查看文章导航会很不方便。我们需要的效果是初始情况下文章导航固定在sidebar右侧位置上，然后当文章滚动后，文章导航订在右侧固定的位置也就是fixed布局。这样明显就要有js的参与了。<br>1.首先在/themes/light/source/js中新建一个文件，名字随意，然后把以下代码考入：<br><figure class="highlight js"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div></pre></td><td class="code"><pre><div class="line"><span class="keyword">var</span> lb_article = (<span class="function"><span class="keyword">function</span> (<span class="params">$</span>) </span>&#123;</div><div class="line">  <span class="keyword">var</span> _sideBarShow=<span class="function"><span class="keyword">function</span> (<span class="params"></span>) </span>&#123;</div><div class="line">          <span class="keyword">var</span> scrollTop=$(<span class="string">"body"</span>).scrollTop();</div><div class="line">          <span class="keyword">if</span>(scrollTop&gt;<span class="number">160</span>)&#123;</div><div class="line">              $(<span class="string">"#toc"</span>).addClass(<span class="string">"toc-articleP"</span>);</div><div class="line">          &#125;<span class="keyword">else</span> <span class="keyword">if</span>(scrollTop&lt;=<span class="number">160</span>&amp;&amp;$(<span class="string">"#toc"</span>).has(<span class="string">"toc-articleP"</span>))&#123;</div><div class="line">             $(<span class="string">"#toc"</span>).removeClass(<span class="string">"toc-articleP"</span>);</div><div class="line">          &#125;</div><div class="line">    &#125;</div><div class="line">  <span class="keyword">var</span> pub = &#123;</div><div class="line">    <span class="attr">sidebar</span>: <span class="function"><span class="keyword">function</span> (<span class="params"></span>) </span>&#123;</div><div class="line">      _sideBarShow()</div><div class="line">      $(<span class="built_in">window</span>).scroll(<span class="function"><span class="keyword">function</span> (<span class="params"></span>) </span>&#123;</div><div class="line">        _sideBarShow()</div><div class="line">      &#125;)</div><div class="line">    &#125;</div><div class="line">  &#125;</div><div class="line"><span class="keyword">return</span> pub;</div><div class="line">&#125;)(jQuery);</div><div class="line">lb_article.sidebar();</div></pre></td></tr></table></figure></p>
<p>2.在/themes/light/layout/_partial/after_footer.ejs中引入js文件既在文件最后添加：<br><figure class="highlight html"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line"><span class="tag">&lt;<span class="name">script</span> <span class="attr">src</span>=<span class="string">"&lt;%- config.root %&gt;js/之前建立的文件名.js"</span>&gt;</span><span class="undefined"></span><span class="tag">&lt;/<span class="name">script</span>&gt;</span></div></pre></td></tr></table></figure></p>
<p>3.在/themes/light/source/css/_partial/archive.styl中添加：<br><figure class="highlight styl"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div></pre></td><td class="code"><pre><div class="line"><span class="selector-id">#sidebar</span> <span class="selector-class">.toc-articleP</span></div><div class="line">    <span class="attribute">position</span> fixed</div><div class="line">    <span class="attribute">width</span> <span class="number">240px</span></div><div class="line">    <span class="attribute">background</span> <span class="number">#f4f4f4</span></div></pre></td></tr></table></figure></p>
<h2 id="总结"><a href="#总结" class="headerlink" title="总结"></a>总结</h2><p>到了主题优化部分大多是动前端的内容，找到对应的文件进行增加和修改就可以，ejs模板比较好理解，但是styl格式对于不长些ruby之类语言的人来说较为不习惯。对于light主题的优化就到这里，随后可能会利用前端知识添加一些背景图片，更改部分字体之类的小修改。</p>
<h2 id="参考"><a href="#参考" class="headerlink" title="参考"></a>参考</h2><p><a href="http://ijiaober.github.io/" target="_blank" rel="external">GoonX的博客</a></p>

      
    </div>

    <div>
      
        

      
    </div>

    <div>
      
        

      
    </div>


    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/tags/hexo/" rel="tag"># hexo</a>
          
        </div>
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/2015/02/10/hexo/hexo_decorateBlog/" rel="next" title="hexo装饰(一)">
                <i class="fa fa-chevron-left"></i> hexo装饰(一)
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2015/02/13/hexo/hexo_decorateBlog3/" rel="prev" title="hexo装饰(三)">
                hexo装饰(三) <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          
  <div class="comments" id="comments">
    
  </div>
  <!-- UY BEGIN -->
<div id="uyan_frame"></div>
<script type="text/javascript" src="http://v2.uyan.cc/code/uyan.js?uid=2123221"></script>
<!-- UY END -->



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap" >
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
          <img class="site-author-image" itemprop="image"
               src="https://ws1.sinaimg.cn/large/5c9d16d6gw1fbesf3zrhej209p09ftai.jpg"
               alt="lanbos" />
          <p class="site-author-name" itemprop="name">lanbos</p>
          <p class="site-description motion-element" itemprop="description">这个人假装很懒，什么都没有留下</p>
        </div>
        <nav class="site-state motion-element">
          <div class="site-state-item site-state-posts">
            <a href="/archives">
              <span class="site-state-item-count">24</span>
              <span class="site-state-item-name">日志</span>
            </a>
          </div>

          
            <div class="site-state-item site-state-categories">
              
                <span class="site-state-item-count">5</span>
                <span class="site-state-item-name">分类</span>
              
            </div>
          

          
            <div class="site-state-item site-state-tags">
              <a href="/tags">
                <span class="site-state-item-count">16</span>
                <span class="site-state-item-name">标签</span>
              </a>
            </div>
          

        </nav>

        

        <div class="links-of-author motion-element">
          
        </div>

        
        

        
        

        


      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#设置分类列表"><span class="nav-number">1.</span> <span class="nav-text">设置分类列表</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#light主题格式优化"><span class="nav-number">2.</span> <span class="nav-text">light主题格式优化</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#light主题增加文章导航"><span class="nav-number">3.</span> <span class="nav-text">light主题增加文章导航</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#文章导航优化"><span class="nav-number">3.1.</span> <span class="nav-text">文章导航优化</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#总结"><span class="nav-number">4.</span> <span class="nav-text">总结</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#参考"><span class="nav-number">5.</span> <span class="nav-text">参考</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright" >
  
  &copy; 
  <span itemprop="copyrightYear">2017</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">lanbos</span>
</div>


<div class="powered-by">
  由 <a class="theme-link" href="https://hexo.io">Hexo</a> 强力驱动
</div>

<div class="theme-info">
  主题 -
  <a class="theme-link" href="https://github.com/iissnan/hexo-theme-next">
    NexT.Mist
  </a>
</div>


        

        
      </div>
    </footer>

    <div class="back-to-top">
      <i class="fa fa-arrow-up"></i>
    </div>
  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  



  
  <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>

  
  <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>

  
  <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.0"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.0"></script>



  
  

  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.0"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.0"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.0"></script>



  



  




	




  
  

  

  

  

  


</body>
</html>
